def decorator(fn):
    def inner():
        print('运算中...')
        return fn()

    return inner


@decorator
def add():
    return 1 + 2


if __name__ == '__main__':
    print(add())
